<?php

	session_start();
	require_once("../db_connect.php");

	//待遇登録

	$treatment_name  = htmlspecialchars($_POST['treatment_name'],ENT_QUOTES,"UTF-8");

	$sql = "INSERT INTO treatment(treatment_name) VALUES(?)";

	$stmt = $db->prepare($sql);

    $data = array($treatment_name);

	$db->execute($stmt, $data);     //UPDATE文を実行

	if (PEAR::isError($db)) {       //SQLの実行に失敗すればここでエラー文を出力
    	die($res->getMessage());
	}

	header("Location: manage_treatment.php");
   ?>